package com.etc.entity;

import org.springframework.stereotype.Component;

@Component
public class Comments2 {
    private String com2Id;
    private Comments comments;
    private String com2Text;
    private String com2Date;
    private User user;

    public String getCom2Id() {
        return com2Id;
    }

    public void setCom2Id(String com2Id) {
        this.com2Id = com2Id;
    }

    public Comments getComments() {
        return comments;
    }

    public void setComments(Comments comments) {
        this.comments = comments;
    }

    public String getCom2Text() {
        return com2Text;
    }

    public void setCom2Text(String com2Text) {
        this.com2Text = com2Text;
    }

    public String getCom2Date() {
        return com2Date;
    }

    public void setCom2Date(String com2Date) {
        this.com2Date = com2Date;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Comments2() {
    }

    public Comments2(String com2Id, Comments comments, String com2Text, String com2Date, User user) {
        this.com2Id = com2Id;
        this.comments = comments;
        this.com2Text = com2Text;
        this.com2Date = com2Date;
        this.user = user;
    }

    public Comments2(Comments comments, String com2Text, String com2Date) {
        this.comments = comments;
        this.com2Text = com2Text;
        this.com2Date = com2Date;
    }

    @Override
    public String toString() {
        return "Comments2{" +
                "com2Id='" + com2Id + '\'' +
                ", comments=" + comments +
                ", com2Text='" + com2Text + '\'' +
                ", com2Date='" + com2Date + '\'' +
                ", user=" + user +
                '}';
    }
}
